import Vue from 'vue'

import Vuex from "vuex"

import mutations from "./mutation.js"
import actions from "./action.js"
import getters from "./getter.js"
import ModulerA from "./modules/moduleA.js"

// 安装插件

Vue.use(Vuex);

// 创建对象

const state = {
	// 存储的全局访问的值
	userInfo: {},
	accessToken: ''
}


const store = new Vuex.Store({
	state,
	mutations,
	actions,
	getters,
	modules: {
		ModulerA: ModulerA
	}
})


// 导出store

export default store;
